package com.ruoyi.monitor.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 监控设备对象 monitor_device
 * 
 * @author lh
 * @date 2025-04-16
 */
public class MonitorDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer deviceId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 所属地点ID */
    @Excel(name = "所属地点ID")
    private Integer locationId;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String status;

    /** 安装时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installTime;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String ipAddress;

    /** RTSP默认端口 */
    @Excel(name = "RTSP默认端口")
    private Integer port;

    /** 通信协议 */
    @Excel(name = "通信协议")
    private String protocol;

    public void setDeviceId(Integer deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Integer getDeviceId() 
    {
        return deviceId;
    }

    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }

    public void setLocationId(Integer locationId) 
    {
        this.locationId = locationId;
    }

    public Integer getLocationId() 
    {
        return locationId;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setInstallTime(Date installTime) 
    {
        this.installTime = installTime;
    }

    public Date getInstallTime() 
    {
        return installTime;
    }

    public void setIpAddress(String ipAddress) 
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress() 
    {
        return ipAddress;
    }

    public void setPort(Integer port) 
    {
        this.port = port;
    }

    public Integer getPort() 
    {
        return port;
    }

    public void setProtocol(String protocol) 
    {
        this.protocol = protocol;
    }

    public String getProtocol() 
    {
        return protocol;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("locationId", getLocationId())
            .append("status", getStatus())
            .append("installTime", getInstallTime())
            .append("ipAddress", getIpAddress())
            .append("port", getPort())
            .append("protocol", getProtocol())
            .toString();
    }
}
